package br.uefs.dexa.rfframework.gui.utils;

import java.awt.Dimension;
import java.awt.Toolkit;

public class ScreenUtils {
	
	public static Dimension getScreeSize()
	{
		return Toolkit.getDefaultToolkit().getScreenSize();
	}
	
	public static int getHeigth()
	{
		return (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight();
	}
	
	public static int getWidth()
	{
		return (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth();
	}
	
	public static int getHalfHeigth()
	{
		return (int) Math.round(  (double)  (Toolkit.getDefaultToolkit().getScreenSize().getHeight() / 2) );
	}
	
	public static int getHalfWidth()
	{
		return (int) Math.round(  (double)  (Toolkit.getDefaultToolkit().getScreenSize().getWidth() / 2) );
	}

}
